Skip to content

Conversation

eolivelli
Copy link
Collaborator

This patch adds much debug during namespace deletion.

There is a fix for a potential race condition in which:

  • the local cache that knows whether a bundle is assigned is empty
  • the ephemeral z-node /namespace/tenant/namespace/XXXXXX with the id of the bundle is still there

Under this condition the broker tries to delete the /namespace/tenant/namespace and it fails, reporting a misleading error about topics created during the deletion.

I have reproduced the case manually a few times but I don't have a way of consistently reproducing the problem, currently I need 6 brokers with 3 zookeeper nodes.
The fact that I need such system makes me suspect of some problem in the local cache about bundle ownership, that goes out of sync: maybe because the local broker is connected to another zookeeper server in respect to the old "owner" that released the ephemeral node while unloading the bundle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant